Added an undo/change history mode and two extra tiling positions

As well as a margin to prevent shadows overlapping window contents in terminal windows