add gravity, fix character code

add gravity.m file
unify character code to Shift-JIS