Keeping shared files synchronized.
+updated to handle window selection based on number of samples or time
+initial implementation of window selection based on time (not finished and not tested)
+minor bug fixes, code cleanup and optimisation