adding simple demo
minor fixes and improvements after testing on demo page