Layout and formula updates.

* Updated balance and grip formula.
* Reference table now inside a modal element instead of in another page.
* Layout is now responsive, mobile-friendly.
* Code clean-ups.