bugs fixed and error ellipse added