Updated scheme to be shared
Added makefile
Added some unit tests
Added ability to run tests within xcode and made setup_system_context public