Update loader and demo to use a standard format
remove messy.lua and sample.lua