added multithreading

modified inputter slightly to test threads.