better object desturction, basic general GUI

1)moved ID counter to "active_instances_counter"
2) instance_show now shows all instances if no parameter is given
3) new function instances_update will manage instances