Renamed variables, added comments, moved tests to bottom in reverse.py examples.