Added model-work, fixed php, added xpath for work items