Upgraded to commons math 3 and fixed NormalDistrbution function to return mean and std deviation needed for normal distribution calculation