Add a PH simulator

Started by Seagat2011