Make attache init allow named profiles. Add weak error checking.

Why replace some variables with the curly brace syntax?  I think the general style should be no curlies unless we need them to use some other feature.