R_load_total and pairs incoporated, modified where some functions are called from in te_pair.py