Updating error checking.
Improving README.