formatclass(cls,...) - format class representation