fixed update() bug, now works for all measurement variables, added sliders for debugging and demo