If any witness neglects or refuses to obey a subpena, or appearing, neglects or refuses to testify, or to produce upon reasonable notice any material and proper books, papers or documents in his possession or under his control, he has committed a contempt.