Document the loadOptions function