rename dwell as timecount and add new dwell.m