updated the way error markers are set. Now the offset is used directly
removed unused code
fixed issue where unmatched text didnt get a style (issue for compass)