updates for matlab processing and added parallel correlation time calculation