Minor bug fixes

1. Array of templates to be added for each class for each host wasn't
getting reinitialised for each class, so addition of one or more
templates to an extant host at any one time would fail.

2. Minor fix to output - a missing tab was added.