Added elipse fitting and update function
Mandatory assignment part 1 finished.