Added max-cols option

In order to limit the number of calculated columns max_cols is set to a
number.