Added check for zero-element WHERE result

Causes divide by zero, since sum([]) / count([]) === 0/0
Revamped main()

- Added diagnostic output information
- Operates on both unc-smaller.png and unc-bigger.png
Minor formatting