colCount optimized, considering the margin between cols; new config param added for ajax dataType.