added main.lua and middleclass library