Changed integer division to float division and added pretty printing of stats to get_stats()