I can confirm Olddog's summary of the accounting treatment of the activities he listed. Does an old accountant's heart good to see T accounts referenced.
I must have slept through the lecture on T accounts, because it does not ring a bell. Oh well, I'll add that to my list of things I wish I had paid more attention to!