Add Electroluminescence and debug menu.
Various minor fixes.