fix a few minor bugs, now a bug in gravity