Minor bug fixes.
Examples updated.