Heavy code reorganization and commenting. Added support for updating flags and ASCII characters in memory pane.