First set of changes
rebased the patch on top of Jean's most recent work and hard-broke lines at 100 characters to simplify patching.
Merge pull request #1 from cjdelisle/review-changes

Perfect, thanks