finished text editor, and made some modifications