First version of function_from_queue written

Used in slave threads to receive function calls in queue