Add dual-averaging code to module.
Bug fixes, DA dev.