Updated README
Updated comments and error handling