structured templates
fixed command object bug and restructured config-controller methods