Changed from "write.csv to write.table"

Cosmetic change in the code