remove guide type, refactore some output, add html out (with go/doc)