Updated demo template & lib

Inserted requierments for PHP functionality & changed demo template
structure.