Line Detection and classification updated, seems to be working well