Updated examples in test/, and made minor mods to docs.