first commit

Still WIP. For example, want to get rid of csv files and use pass buffers around.