Added debug dialog. Fixed bug with observers at startup.