added comments and better 10.9 detection