worked on library module and small adjustments