Include examples and include them in README.md

Also fixes a compilation error in the properties example