Updated template_filler script with checking code for subtracksw
template_filler is partially fixed, but will need more work - processing 'link' is broken