rfdi program added
bug fix in variable name
bug in array size in remainder block
fixed bug for when files have remainder