Solved concurrency issue

if muliple programs where submited at the same time test showed that the out streems would suffer form a race condition and each program may get the out streem of another while some returning none (since it went elswhere)

Fixed that.
using a ThreadPrintStream class that uses ThreadLocal to keep tap of the indivifual outstreams