Added templates directory and modified settings to accomodate this