minor formatting
switched hash refs to object, renamed accounts table to wallet_accounts