rename tidied
DocString for rename added and further tidied
Modifying rename test for reusability