Made some small changes to LineDetector