added documentation to the library