Refactor function names
Add addFile command