Improve docstrings for sieve() and shapes().

Also restrict to uint8 dtype. To be relaxed maybe in the future.