fixed bug in selectInBatches, fixed CITATION file