Improving code documentation and fixing a typo.