Update fdweights.py

Fixed docstring Example codes.