Fixed more stuff like config not being saved or bad calculation of balance. Also slight tests improvement.