Code polishing and documentation cleanup.