some bugs fixed, out of memory problem solved, data percistence in files
and some layout improvements