A lot of comment and doc fixes.