Reformat with clang-format
Add the project name the #define guards in every header

Terminate namespaces with comments.
Fix C++11 -Wnarrowing