updated documentation and library