Added new exceptions, tests for state and observation transitions, reward tests, and fixed numerous bugs with the transitions, thanks yet again to the unit tests.