Changed dependencies instruction to a simpler form
Reuse the base template for efficiency and moved templates to the init() function. Also moved templates into a map