Added Gravity function
Cleaned up Application from testing