fixes
custom number-formatting functions; clean up global config var