Refs #16. Modified tpl files from contemplates.

Moved contemplates content into tpl.php files.