Implemented initial accuracy tests and fixed bugs
Make respect_nan work for all modes
Merge pull request #25 from astrofrog/accuracy-tests

Initial accuracy tests and bug fixes