add code for the chord
minor changes
doc update