updated codebase…working pages in php
Added preferences for sample build