added support for storing values in the EditSet. Renamed some variables.
moved formatting of individual lines to new file
eliminated duplicate code by extracting a method