Implemented view of statistics;
Code cleanups;