Upgrade libraries and doc fixes.