Fixed a couple of bugs. Added Doxyfile and .gitignore files.