added osx files
rewrite in progress