The structure of certain operator algebras