changes to php

added pattern lib, styling started