markos added, old uncommented code removed, competing determ. model vs HMM implemented