Tidy up banksim.c