bug fixes: 1) Changed the glossary matching regex to only match if the glossary is present as a separate bug
	   2) Rectified repetion of text if text entered outside html tags in the text editor source