Minor tweaks to code and comments, typo corrections in POD.