Refactored the code somewhat to allow chi squared statistic to be calculated and for better organisation in general
Made further additions to the first report