Fix variable assignment
Turn tables file into CSV

Per #5.