JAL-1512 fix calculation once again and include score matrix documentation in comment...