Added more logging messages
Fixed some bugs in synchronise.sh