Refactor function names and update .gitignore