Added error handling. Added alerts. Updated readme.md