Added some commands to debug

and fixed some issues with ObjectG and made it more robust to withstand
changes