Save key to files with options for key length and minary

- made more progress on using multiple options in keygen but now need
to work on reading the key in encrypt.