added function to swap start and end of line
made lines vector protected from private
added function to clear lines vector
changed parameters for rateObject()
many changes in rateObject()