renaming/moving/refactoring for libraries (meaning entities) and core libs + lots of fixes