minor error message and doc changes