adds source code
ignore simR
adds makefile
optimize build
various changes