Added function documentation and another go fmt