Extending error catching and README.md.
Extending error catching and README.md.
Additional error checking and unit testing.