Added tests, fixed incorrect exception being raised.  Minor additions to README and bumped version.