Added code to remove the first contiguous block of empty rows and also fixed weight calcs to get float weights