changing numbers of threads from the commandline
adding simple statistics