Lots of code changes. Added more tests. Updated package version number, etc.