same but with better comments
first try on line extraction
illustrating the line detection