added example for osx
updated readme, added libs for osx, added example code