Ethyl alcohol, on treatment ,with bleaching powder gives chloroform. Which of the following is/are the function of bleaching powder?