Refactoring, R integration, LIMMA WIP (domain up with integrated unit test)

Huge pull with four days of work