added code for doing layer-line analysis on class-averages