added 'threads' argument to program
added 'threads' argument to program