Implemented LineData class

& removed lineDat global