refactored names
put back method in RichTextEditor
added test for inital loading of a file
added caching for regex