Cleaned up error messages; prefer stdout to return value.