added a bunch of doxygen comments
fixed some memory leaks
fixed accidental munging of gitignore