Organising chaos: Creating electronic matter files