(Clone Detection) Fixed some problems with calling DO functions
(Clone Detection) A few minor changes to error calculations