clean up chord check method, add inversions option