Added front-page and home as template parameters

and fixed a few php errors