autodetect of allowed methods and making MAX_AGE optional with default
ensuring MAX_AGE is optional
updating doc