updating filter code and HMM experiment code