Added the reverseString function. Also added comments and data in the arguments for ease of use.