made a nicer command line interface
added error handling to config file opening