[SPARK-4644][Core] Minor code and docs cleanup