fix warnings
Add examples