More fixex, example now works.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>