Added ability to save output file

Specifiying -f will allow the user to state where the output file, output.kk, should be written.