public static function instance()
 {
     if (!isset(self::$instance) && !self::$instance instanceof Lightspeed_Importer) {
         self::$instance = new Lightspeed_Importer();
         add_action('plugins_loaded', array(self::$instance, 'load_textdomain'));
     }
     return self::$instance;
 }
/**
 *  The main function for starting Lightspeed Importer
 */
function ctrl_lightspeed_importer_init()
{
    $lightspeed_importer = Lightspeed_Importer::instance();
    register_importer('lightspeed', __('Lightspeed Importer', 'lightspeed-importer'), __('Import product data from a Lightspeed CSV export file.', 'lightspeed-importer'), array($lightspeed_importer, 'dispatch'));
}