main.c: added check_support() and parse_args()