update error handling and readme