Added some documentation to the library module