Small modifications:

1. Fixing typos
2. When checking arguments - special constant '-1' is replaced with
   simple INT_MAX