Added legal preamble. Cleaned up SGS sync function.
Removed LES sync file.