Rename param passed to getTextFromDialog. Clean up comments.