Improved exporting and docs.