Refactored and renamed variables for readability. Might have changed string commands.

Might have changed string commands for SelfEval such as "tglist".