Improve rate of return computation.
Bug fixes (xdata related).
Refactor/improve compilation code and rate of return statistics.