added failing test case
updated tag type regex building
improved closing tag finding positioning
updated regex for typing
updated tag search type
fixed up all positioning bugs