Added Lua Class

Also fixed an initialisation warning for BaseClass