variety of small style and internal doc fixes