Moved root demo code to the demo folder.