refactored graph-contrasting code into the factory module, created a
new class to visualize GUI mode, and added cxFreeze script so compiled
exe can be produced.