modified contentfeatures functions and added some small other changes