transactions.cpp: added methods. Still needs psuedocode.