Rework command system a bit
Only save transactions when they changed + removed empty json