added docs for registerTransition method