- added Doxyfile
- fixed Windows build
removed NULLs and foreaches
some small styleguide fixes