Add proper Godoc documentation

Go supports documentation well. Use that.