cleanup
rework input to use a par file.

easier to scripting and for parameter studies.

all of this code is taken from the athena source