Update docstring and fix pyamg warning check