Change Config folder name to config and refactor code