modify gitignore
refactor cluster and add config setting