add directed stability to repository via stability2 function
mac headers
removed some unnecessary comments