Added comments & removed obsolete

Added some comments and removed the obsolete version of drawLine
function