Sparse query masks

Update docstring. Describe all inputs.