make include folder and various bug-fixes

work from the Open-Transactions project