Updated readme and error handling