Update README.md
Merge remote-tracking branch 'origin/master'
Fix error checking code