Fix for Records File Index

Also a fileRename function (here's to you, Ian!)