Got a working version of the time series frequency classifier lsm approach. Parameters seem OK in this version.