Added some error checking during the library generation process. Removed the requirement to run a separate process for fetching metadata. It is automatically fetched during the library generation process.