Refactored Stats view

* Cleaned up code
* Runtime recompilation feature restored