scala tweaks

including the pairwise processing
r analysis tweaks
ignore other source