Also edit formatting of comments and docstring to respect said variables
This new function allows for a cleaner hook addition. It also moves the check for the presence of the auto-id option to this function. This allows the user to call org-unique-id on any org buffer, regardless of the presence of auto-id and its value.