First version of BEND running

The calculations seem to be right, based on example data from Dickerson.
Next is to write the results to graphs