Fixes bug in calling tar
Adds some comments