Phase 2 vectorisation of common.m and ancilliary files