fix flashing text and demo mode

Syntax fix; also fixed flashing hovertext. Also completely fixed
demo mode so it works properly.