Add raw export option

Pulling in Jeremy's raw export feature.