Added a template and wrote the homepage