edited run functions
edited autonomous periodic to start timer at beginning of period.