version with extract_sid_tid_recs.m updated, free to select columns