Final changes and ref-doc corrections.