Document Restrictions class

New: documentation for Restrictions class, methods, and fields.