Change check_authentication function for more flexible
test_authentication update
Truncates lines to 79 characters.
Clarifies documentation string.
Updates authentication example.
Updates documentation for new authentication system.