Fixing bugs with automatically assigned k values

Added a normalize function to DFData