Updated readme
Fix exception handling