finished it completely, writes to the output files, handles exceptions, and has comments where needed