Extracted exporter. Added comments.
Updated version.