Added fn to check detailed balance.
Call detailed-balance fn from stationary state fn.