Added callback support to unp.saveDocument as part of #271