added LossFunctionCorrectedForDownsampling
some debugging changes
resolved conflict