Lib upgrade, documentation