code cleanup, add updateLibrary