replaceLineScan and referencing bug fixed
Merge pull request #341 from salil93/Linescan

replaceLineScan and referencing bug fixed. I am going to go ahead and merge this. Your help is greatly appreciated. Would you be interested in applying to our Google Summer of Code internships this year?