added functions to add objects to library arrays