Fix merge resampling rounding

.. I know its a lazy method but at least use the right
   numeric format. LOL. What a twit.
Syncronize writes to build valid json
Clean up white space