adds support for mac clipboard and removes old stuff
adds support clipboard mac osx
minor changes