Changes for online_stats & offline_stats & load_frequent & load_less_frequent

Made some small changes for online & offline stats
Fixes for psutil cpu usage
More code organization