add better error handling
Update README.md