added rank_ref dataset, moved fxns for similar datasets to separate files, started work on col_downstream