added 'memory mode' config with 3 options: 'ram', 'map' and 'save'; ram will use just ram without any save-to-file capability; map will mmap() the files so that they updated continiously; save will save the files on exit; files generates with map and save are the same