The application itself is not the best I have ever seen, however, I can look over that. The Lua code you produced for us is a little bit flawed, however, people do make mistakes, I think of a little bit of practice you can be a decent developer.
could you do one more job and make it Flawless...