Added preview feature.
Fixed exporter. Closes #39.