updates for a functional HMM

now accepts variable counting window sizes