Added comments on synchronisation.
Code style.