Add ability to handle errors.
Update the readme to make it better.