modified interactive version of transactions, added prepare function to floppy.erl