Prep for initial commit of codes for general R usage