Commented code.
Refined output to be less repetitive where unnecessary.
Removed obfuscation for useless cases.