Better initizaltion, added isObj funciton to Obj