v9. stable - first phase of templating

no change on PHP hard code! just changed some templating!