adding flux_gain.py & MB_error.py plus ex input files