apply changes
add correction from Sean
added TODO for ambigous values
maxY position was one too high
remove expected txt test result
use last detected line as well
remove unused method