Added documentation. The c++ is probably b0rken