Refactored code, fixed bugs, added test/example, makefile, and .gitignore. C++ is an abomination.