Adds some more documentation for the authentication middleware