AppendText replaced with WriteText due to style problems, added SetInsertionPointEnd