refactored the whole LibraryModel and Model structure so that a LibraryModel contains a Model, implemented basic library to editor operations and backwards