Update README.md

Fixed formatting and added missing catch blocks