adding file and dir handling, extended usage help