File layout added, and index extends from it

Template layout is implemented