fixed main program to store results better
fixed main program so it won't regenerate data each iteration
fixed matlab files to go with main program fixes
fixed example cpt ranges file to be ANDs