Surface rotation and photometric activity for Kepler targets I. M and K main-sequence stars - 42Papers