added template config file
remove main config file
moved index.php into template file
removed debug code from index template file