Added lots of missing documentation and refactored minor stuff here and there.
Lots of namespace refactoring and minor adjustments