Separated sychronization class to its own file.
Cleaned up headers.