Modified LibraryBookGen to take weighted inputs
Clerified comment