added block cmd

This implements the `block` command from #138.