Merged PHlogic.py into PHdisplay.py to simplify structure.