DC removal added and bugs fixed