updated error handling and readme