categorizing transfers and transactions and adding links between the two