added transaction controller

begun work on the transaction controller. index function complete.