On nonselfadjoint operator algebras