Modify docstring for match type
Function to calc sources from cat in BGPS
Remove some unnecessary comments