Close input file
Working commit; can't get file output to work