Compiles without r3.c, made some changes in main and commhand in order for it to do so