fixed error merge in tempplate index.php
easy update templates
add core in repo