Corrected bug in matching algorithm. Added new options to return the beginning of the line and non-matching sequences.