Line module cleaned a bit more, for use as 'model module', and polyline module revamped according to this model