modified readstudy.m to eliminate need for collect_data option