Makefile now compiles with R's build system
moved R test code from src/ to tests/