Added comments to equals method
Added toString method
Updated toString method
Refactored getOutput method