fixed godoc, general code cleanup
Merge pull request #19 from stealthly/godoc

fixed godoc, general code cleanup