Rework exports.
closes #265. closes #269.