Populated Andys algorithm into GetLLM_valid.py

Andys change on beta_from_phase changes also the outcome. The
filecheck.py was failing. GetLLM_valid had to be adapted to pass the
test.
Changed betaFromPhase, getPhases and getFreePhase_Eq. Further added
three new functions(BetaFromPhase_BPM_*).