merged mapselect.lua and cleaned a few comments