Added comparison feature, tests passing

Tests should be updated with a few more for comparison.