Update and rename accessors.R to oop/accessors.R

Changed how classes were being checked.