added a config file, some exception handling, and an exit message
made a nicer command line interface
added error handling to config file opening