- moved regions_from_graph into wed_modular
- documented all functions and cleaned up