a new function to calculate the high level features, one file at a time
modified to handle the label vectors along with single labels
scaling now considers features located at variable positions