Automatic tests, transactions implementation and some further documentation