Fixed message passing bug. ALWAYS DECLARE VARIABLES AS STATIC INSIDE PROCESSES. Local variables are NOT preserved when returning from a process wait or yield. Also added more debug statements.