Output tables are now with respect to source instead of dose type
functions to be redone are commented out
working on first dose factor functions