Added dc_sweep functionality for cg method
Fixed conflicts