added config example, update code style