added help message (-h --help)
added requirement check
added exid code check of youtube-dl
refactored to use functions