Packaging and Generating a library