Add get/setEntries API to Chord class
Fix bug