Clean up CREATE-MATCHER-AUX method for REGISTER.

Add some comments, and rename a variable.