added some scala snippets and change M and s keys on Mac OS