Proximity simplified by use of counters
Calculate descriptive statistics
Removed dead code
Added a proper comman line interface (argparse)