Added some logic and tests to process files and create transactions.