fixed error handling, readme