added godoc comments