HMM
 - readModel and writeModel fixed