fix marshaling; add go license and README
add tests and fix code
understand attribute name spaces properly
minor updates for review
Merge pull request #1 from rogpeppe/001-fix-marshaling

fix marshaling; add go license and README