Start working on trunk function

The trunk function is now select_primers.
I also worked on a few of our branch functions to smooth out how they
represent data.