define native fields templates, change references to templates, format templates
change absolute path to relative
relayout files, and small refactoring
index page with stat implemented