- added a schedule to synchronize
 - seperated the uploading and downloading synchronization into two seperate files

 - implemented the uploading of device states