affiliate generator fixes && added chapter 16