Added the Transaction class

Contains the attributes features and target. Updated the rest of the
code to use it.