Chords: Minor code refactor and example of generated file