new and improved gravity implementation
Merge remote-tracking branch 'origin/master'