Refactor and initialize project