QA

- Enabled code analysis on build
- Enabled building of XML docs on compilation. Missing doc will cause
warnings.
- More XML documentation.