added the plotting functions from gwselect and played with the scratch scripts.