implemented command-line arguments -v -h and -t