S4tests

This includes all the changes in PR #39 , but also converts to using S4 methods to coincide with S4 classes `caretStack` and `caretEnsemble`.