Change events for synchronization

Signed-off-by: Mohamad Gebai <mohamad.gebai@polymtl.ca>
Improvements to the view

Signed-off-by: Mohamad Gebai <mohamad.gebai@polymtl.ca>
Some comments

Signed-off-by: Mohamad Gebai <mohamad.gebai@polymtl.ca>
Some modifications to the algorithm

Signed-off-by: Mohamad Gebai <mohamad.gebai@polymtl.ca>