read_data function

Read and format data from csv or xlsx files