PH and PS for single phase basically works now, still need to determine guess values

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>