added declaration and documentation for output functions, and the deprecated namespace.