An analysis and implementation of a general coupled cluster approach to excitation energies with application to the B2 molecule