Added lids2mids dictionary output to syncing function + additional function comments