Added namespaces and documentation.