second attempt to add the VCF exporter

The VCF exporter finally generates output that can be used in R.
I pushed the commits to fix the mentioned issues. The next time you push make sure you rebase against master first.