added code for another sharpness measure and log file recording