added onUpdate function, added comments, returned close button to normal

onUpdate times how long the addon has been open to hide the number and
status bar that show the glucose levels, close button now hides the
frame again