fixed DNS driver in consistency calculation

was causing error
updated algorithm for consistency value,

not counting first lap
added main_batch for batch processing