Added renameFile....

...and a lot of other stuff I don't know why github hasn't pull-requested before