documentation for some of the builtins

I cleaned up the pull request somewhat and now there are no extra merges anymore.