Added removeFolder to templateManager and made private functions really private
Implemented the generation of the storageLib