Finished refactor of textEdit and commenting