Add comments + move ensureColsWidths in link function + some improvements