added godoc documentation (finally)