moving to objects

not sure I understand S3 well enough to understand the implications,
but am making "sr" and "sropt" classes. This will simplify, I hope, some
of the argument passing.
This means variable names have to change all over the place.