Moved package registration to register() method
Merge pull request #29 from radmen/master

Moved package registration to register()