Monte Carlo simulations of solar flare x ray emissions and its interaction with the ionosphere atmosphere of the earth