added MAX_BATCH_SIZE and START_AT env variables to provide finer batch size control when importing