added index.html to navigate; cleaned code and made templates