Fix equals, hashCode and compareto for Transition, TransitionList and State helper classes (where it applies). Add more Javadoc.