Further improvements, added possibility to create new objects and assign them an id