updated copy of the ffld code with warnings removed