Phases function

Add or remove phase reactions in a problem