Fixed regular and ZC ledgers. Passes all C++ unit tests