nicely refactored code, added statistics to fittings
deleted bad files