added readme, fixed stats bugs, error detect for random number generator