little refactoring, little style change, config example