documentation and const fixes.