cmd interface added, table binary search fixed.