Added the chi-squared distribution to statistics
Added sampling function for lognormal distribution
Just some cleanup for internal consistency