New draft implementation of drawLine

New function added, some functions renamed and new draft implementation
of drawLine.