added check if tag defined in build_file_cfg
added case insensitivity to most args and device id. Along with some comments about args.