refine code, add MyApp.lua to start