edited comments in Line class. Specific check variabel and getGradient method