Changed compose to use the semiring of the Wfsts and adjusted Wfst constructor.