first version with regression and footprint - combined out of the box. compiles and runs, still some unused variables to clean up.