Added greater function explanation in the comments of auth.c