Cleaned up main.lua file to get rid of unused code.