updated readme to show how to handle errors