lib: update the documentation