update for NANs, comply with REP117
Merge pull request #3 from mikeferguson/master

Handle NANs