Clarify variable names - adopt $user_login, improve documentation

* And, improve test.php, tidy up.