Improving code quality of C++ add-on

[Source](http://codereview.stackexchange.com/questions/28455/c-class-needs-a-very-critical-review)