Fixed a few minor bugs added marker class to keep track of lines and search results