Code Cleanup: Notes deprecated

.. some vestiges from the old notes file.
.. fixes a significant memory leak in MainWindow too.