updated to new format
Added test_get_next_account
Added get_next_account and update_history