Made everything compile and moved the darwin code into a new namespace and renamed them to more sensible names