Progress on batch(). URL global added
More progress on batch()
batch() function finished, tests pass.