fix for ReadHeadInfo comparator
fix RayMessage.read/write
debruijngraph checksDebug in open function
refactor scores to use edgetypes