added setPackages function, analog to setExport
Merge pull request #1 from JonasRauch/packageExport

added setPackages function, analog to setExport