added fbranks, primertree, closes #26, closes #27