Improved entity system. Nested groups now implimented.