First cut of the unregister function
Merge pull request #56 from wibblymat/unregister

First cut of the unregister function