Updated README to provide a better understanding
Added a try catch block