fixed bugs with incorrect median calculation
adjusted preprocess_ncores logging