add expires_in option and comments and remove duplicated lines