added label to theory section to be able to reference it #57
partially added phase switch cases #57