passing parameters to sub make
more docs
better error hanlding and suffixes
checking failings for pthreads