Various changes, added semaphores and file for communication peripherals.