cons bif, fixed list output
broke some long lines, rearranged some functions