added support for inf, -inf, nan, and prettier printing of floats