Fix glcm example bug and roxygenize.