Library Pattern and Instantiation

I changed the pattern of the library and simplified the instantiation of the module. Your module works great!!!