implemented basic module interface, hooked the add entity events and hopefully implemented state loading and saving