Documents reveal further details of mass government spying.