Misc. fixes, added examples.