Added transaction implementation

Added a file to implement a transaction.  Doesn't
need a class; a structure with some overloaded
operators will suffice.

Also restructured the file layout some.