Implemented IdeaStore deletion and some refactoring