Minimal documentation and fixed some golint warnings