multi threaded operation implemented, need to add cmdline option
Added threadcount option to command line