move command documentation into function docstring