initialize app, options and 'runDemo' function