get_elements function

Get column names either from user or from attributes