reinterpret_cast<int> added
some documentation fixes