initial commit
Merge pull request #1 from whackashoe/c++port

initial commit