Fixed routine bugs. Seems to be working. Need tp move all budgeting to PhEDEx calls