Add detect class
Add r and area calculation
Partial add cummules.py
Fix connectivity calculating dx and dy