improved batch number processing
Merge pull request #6 from hktonylee/master

improved batch number processing & improved performance