Documentation improvements in library