Write_Blueflood cleanup

not sure how these changes got in. You may want to reset this file to whatever is in master.