TRX regex's are working now. Also cleaned up the code and took some
notes.