finished comparison graph, fixed comparison checkboxes, some refactoring