Added file reading/writing

Added functionality to write keys, cipher etc. to file and read the keys
from file so same keys can be used twice.
Updated JavaDocs