refactored output checking to be less complex
missing docs
Merge pull request #50 from Sage/refactor

refactored output checking to be less complex