Created new library_create function and tested it in the init flow