Started to refactor the export script into a library. Index file will autoload the other classes, need to confrim this will work with composer (probably will).