added conditional downsampling + improved printouts + minor fixes