Added 'namespace' option to allow for namespaced output.