Rewrote the code to correctly implement unimportant events.
Renamed class Tools into ServerSync tools and added some comments
Added C#-style comments to all public members.