remove average calculation, proc_memory to global_memory
Merge remote-tracking branch 'origin/master'
code cleanup