revised
new plotting
complied versions
r