Preparation of Kepler lightcurves for asteroseismic analyses