added another no data handling case
fixed bug where timevector could become longer than datavector