Fixed a null pointer error in EnsembleOutput, added comments.