Add demo flag to build examples

This add a `--demo` flag to help users test the features/others flags.