Fixed printConflicts, added test demonstration to main