added a batch processor and updated code extraction code