clean up a little

removed unnecessary PROTECT calls, and also stored
the dots value so we don't keep repulling from the SEXP
more clean up