Daniel's version of the TransitionMatrix class

Changed a lot of stuff...
Removed double spaces.

Removed double spaces at new lines.