Merge pull request #6 from doug1/master

Pull out compare_GridNodes for portability
Merge pull request #7 from doug1/master

Minor clean-up for portabililty