Added Spawn object to lua and functions to manipulate them