Document exported names and fix golint warnings