Rewrote all files.

Implemented gravity arrows. (Still broken)

Simplified code, to reduce process time.
Merge origin/master