Split main method into submethods, added error checking
Added error handling class
Switched driver to use Chrome over Firefox