working class implemenatation, bifdata output needs work and
plotGraphStats may need updating to plot bif data results