Remove unused imports
Fix memory leak and reformat code
update version number of SubLibrary