Update main.lua

Enhanced comments