Editor automatically fixing end of line characters.
Fixing trex_match check and adding _DEBUG printing.
Added extra test cases for trex_match to catch false negative/positives.
Merging trex_match fixes with code cleanup.

Conflicts:
	test.c
	trex.c