Create fdweights.py

Separated fdweights file from fddif.py, wrote complete docstring.