Updated the logger for better logging
Further improvement of logger with time stamp
Corrected semaphores usage (concurrent usage of the buffer in order to make it usable for stage3)