need to retest a lot of functions
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
about to merge back with master. added ability to accommodate empty ledgers
d
d