make sure the namespace is an atom, add more docs