Add godoc documentation for types and methods