added comments, correct computation of comparison range
Merge branch 'development'