Add main code and configuration sample.