Removed some debugging code and created the method doubleFormatter