Memory dumping and log limit

Added ability to dump the memory to text. Usefull for exporting memory contents to external programs.
Added a variable limit to the CPU log to improve performance