Added doubles to mysprintf

It can be enabled by un-commenting a define statement.  I was getting
those weird crashes again so I disabled it, although I doubt the new
code is causing any problems.

Other small edits.