first version with output to stdout and automatic recognition of attribute column names