added merging of multiple books