Renamed add_network() to add_network_to_tree()
Fixed add_buffer_to_tree() not updating buffer->window