Added new commandline arg (thread count) and changed main function(single file or dir may be processing)