Second increment of Nucleo; adding semaphores and improving thread.

1. Updating thread with reference to current running thread.
2. Counting semaphore.
3. Renaming example sketch to naming convension.