Undo/Redo; Tabs

Smoothed out the undo/redo UI. Formatted everything with tabs in lieu of
spaces.