Clean the code of initing a demo, and also add script to clear it