Compiler changes - Checking for correct output, file_handling needed slight modifications