phase1 WORKS with 2 modes! No longer reading psi and k from run, instead scanf'ing it. Think of better solution tomorrow.