added invalid2nan function
typo fix
#26 docstring update