changed maxWeight.py to WeightedRegDom.py. add docstrings to WeightedRegDom.py.