got rid of some additional calls to the Function constructor
integrated code for obtaining addon version number into exportPrefs function
made small refactorings
moved responsibility to export prefs to a string to the eGPrefs object