added method in fsm to generate an svg description of the fsm (by Tim Meehan)