Merge pull request #60 from johnbrett/master

added test coverage and register test
Removed backwards compatible to add test coverage
Merge pull request #1 from glennjones/master

merge latest