Fix sync

Done some changes with timestamp and md5 in client and server. Before the changes the md5 generation was different and the server timestamp logic was not coherent.