Pause Option added, some refactoring

Added option to pause memory measurement while the GUI isn't displayed.
Also some refactoring for the string displays.