Tests, better docs for batch
Updated API docs