style fixes, removed bunch of commented code

slightly changed the handling of NodeEncoder class to make commented out code more useful
added explanation on authorize() comments
Merge pull request #28 from pkit/minor_fixes

style fixes, removed bunch of commented code