more minor changes; switch from csvreader to genfromtxt