Add documentation for preferences