fixed php warnings
added comments template for pages. fixes #22