Seems to have some issues with line length

Scans over 9 or 11 sometimes not 10- check leftward and rightward extent

Added in double counting code

Needs final line code added