Move version number
Refactor die() and set errexit, nounset
Add header comment
Refactor ls-files
Change all tests syntax, add new test because of nounset
Rename functions for commands