Fixed #278, Implemented Demo mode vs Code mode