WIP: data writing complete. TODO: separate by year