Electronic structure and collective excitations of long molecules with conjugation in the main chain