Refactor comparisons controller logic
Update comparisons tests
Finish custom flash messages and error handling.