Transformed exporter to q promises. Added comments.