Report now created in separate function.
Added phase to progress report.
Added hooks for calling external scripts.
Progress file now also shows cleanup progress.