Added file sync utility

Moved source code around