Added basic configuration option and a demo in the main method of Demo.