o fixed darwin compile errors (I dont have access to darwin)
o added functionality and performance testing