Add examples to compile and Fix #1