Changes stats routines to calculate and print
Changed to use new stats routines
Corrected return from cin_data_write
Fixed flow of assembler routine causing segfault
Removed premature return