Some typo fix and an example file.

Also this fixes the compilation on Linux.

Signed-off-by: anuka <david.vas1@gmail.com>