tried to improve undo/redo & CCP, added new feature to fill out the format to a given length