Work in progress
  - updated some of the documentation
  - added error checking for file access and argument parsing.