Moved SEM-focused RR/knitr-related functionality to existing module as part of RR code consolidation. Logically structured and arranged functions in that module. Code cleanup.