Added documentation strings and removed unneeded original number tracking in formatting.