some warnings fixed and hmm implementation continued