Essential memory fixes. Now safe if network connection fails.
Formatting + style.
More interesting search example.