Code cleanup. No functional change.

Moved strings to resource file, and renamed variables.