Added last date of the month to make monthly calculations easier
Added parameter checking to Rank UDF
Added FilLCumulativeUDF - takes input value and a key, for the key output max(last_value, value)