added comments. fixed bugs in editable-label, added a 'type' field in the object inspector