Fix .functions syntax errors and made get_cols complete.