Similar to the NAME / MEMO non-empty comment, I'll need to check these too.

I was in a hurry to get my output, but this will obviously need some iteration to make it work for other people's statements- I also haven't seen any investment type OFX statements, so they may be wildly different.