Minor code touchups
Add getopt4j dependency
Process arguments using getopt4j
Remove unused variable
Apply fixes suggested by ideas inspection tools