typeOfLine tested and working

first hurdle more or less complete.