minor fixes and documentation for libs