neaten up code, document the purpose of the 2 registration methods
get rid of excess unused code
Merge pull request #213 from progwml6/master

neaten up code, document the purpose of the 2 registration methods