Added average and median execution path methods.
Added average and median execution path methods to xml output.
Refactored TxtFromatter to use methods defined in BaseFormatter. Changed some method's names.