Changes to RWBS, COL and IMG, mostly to make them less error-prone and simpler to use