Extracted dot template to erb file; Ruby formatting tweaks.
Added clean Make target.