Moved UpdateValues to machinecontrol
Updated constructor for machinecontrol
Updated constructor of timegraph class