fix c++ compilation
tiny bit of documentation