add memo function.
not tested.
Merge branch 'master' into Linux
added functional for UI and Memory.
previosly tested
secondary changed function Memory;
not tetsted.
Merge branch 'master' into Linux