Insert namespace list members to correct position.
Removed obsolete documentation.
Correction to previous.
Added a new test.
Removed unused import.
Removed debug code.
Addressed feedback.
Merge pull request #1171 from hjoliver/fix-namespace-list-order

Fix namespace list order