Moving the tw config into a namespace to pass the whole lot through. Moving valid string checking into the Training Env