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

Fair enough. It's almost like comments are useful or something... Is it clear what it should do though?