adding function docs, run go fmt