Do not include special variables in d,n->variables
Add categories to dag_to_file