Added ability to use functions as namespaces.
Updated documentation for functions as namespaces.