added receive() function and moved the bufferQueues to MessagePasser