Final versions

Added write.table() to R script, and now have a working cdv file.