Cleaned dead code from gameobject
Changed addcomponent to return the pointer