Update gem summary
Refactor duplicate code into method
Support --max option across all commands