edited diag and time_code, added vectorize file