improved the plots and implemented histogram plot for monte carlo