tidied files, added code for updateStartValue to work