Added Synctest
Changed search by date slightly
Added date-search tests
Fixed indent
Sync works now.
Mergetool done