Removes unnecessary comments, unnecessary test code, cleans up whitespace, adds base case for recursion- lists of a single word.