Reorganized things.

Also added a batch file to run the Lua file.