Fixed config bug, and index bug

Inapporpriate templatePath settings, and namespaces can't be applied to
variables on their own apparently...