logging and doc fixes.