Add some coments and fix some formatting
Add class "BatchItem"