add percol configuration file
refactoring code