- fix process of --batch option
- added --max option (same as -{number})