Add some function-level docs