Add file logger for HMM
merge