More code polishing and documentation cleanup.