makeEPub in a single function