document the library