Added list2dataframe function