Added auto indenting, undoing and more to text editor part