Finished off my error handling
* forgot I had done this and didn't want to revert it
* had to change some xpath and general strategy a bit
* front end still has to handle the errors and display