Change the way functions and the script exit
Add ls-files command
Refactor function names once again
Change the tests once again
Add TODO comment