a few minor edits to deal
with warnings produced by R CMD check (lots of other things not fixed that
it warns/errors about!