Addded option to exclude columns and set a maximum number.

Some other minor fixes