Created Values for area detection and fixed end of program window

Made end of program close windows Created variables for tracking the
area of the pupil