moved packages to the top & improved regex to exclude meanFreq variables
merging