New base.lua, cleaned code a bit
Small changes
Using less tables