Implemented mode switching

changed the printbutton to a mode button
can switch between
-2 point calculation
-all point calculation
-dynamic mode
-print mode
fixing bug in twopoint calculation
changed refreshPoint()