Changed line drawing algorithm.
Added axes to graph drawing.