added flag demo and improvements to other materials