Added csv output to script and R wrapper.
Merge pull request #74 from hugadams/rpy

Added csv output to script and R wrapper.