fix some typos for using the refs
Added another subroutine to reduce repeated code. Fixed a bug I created in the last commit
removed unneeded global attribute for a regex match and added comment
added a newline character at end of a print statement
Merge branch 'master' of github.com:stajichlab/mTEA into codereview_Jason

Conflicts:
	scripts/activeTE_msa.pl