Added comments to auth code.