Cleaned up namespace handling a little bit. Namespaces are no longer provided if no namespace argument is given.