Fixed another error with splitstring where it didn't add the first character in certain cases.

Tidied up some mess in renamer and added a restart function.