Proper initialization.
Updated pivoted features to new names, added backwards compatibility.
Formatting. Plain 0 output for 0-valued doubles.