Study of magnetic properties of permanent magnets using atomistic spin model-Treatment of thermal fluctuations and temperature effects and future prospects