Fixes csv error (appending to initialized slice) and adds headers based on the first map in the results array. (Maps *CAN* be different, but it's a start. JSON is the better way to go in general.