Added 2D debug view and reworked classes slightly.