Add better error handling
Add phantom error handling in depth

Rev version
Add ability to handle single files instead of directories
Rev version