minor changes in inline comments
rename variable (now transaction - was inputData)