Major bugfixes; script now appends to dataframe only once (from a list of lists)