final functionality

output file is now correct
added checksum generation