created functions for some of the background processes, also lines to start input and output queues
multiprocessing now working.
corrected bug causing break on division by zero
Added R wrapper script
removed temporary .py file - added by mistake