Change formatting and add undo setup

Format methods.  Set up config for undo