updates to phb Demo code

final edits to functional code...