Update GUI

Some bugs fix, added new API functions, adding a CHILDREN object no longer need to be defined in {}