Closes #7. Added saving of namespaces.