Add functions for add and remove final states.
Add function to set initial state.
General changes in remove_transition function.