added forward probability calculation
returning the state probabilities from the forward algorithm
small fixes