39 other Palestinian prisoners have been released after Hamas resistance group frees 13 Israeli captives, four foreigners as part of the ceasefire deal agreed after weeks of intense fighting.