Re-organized code and added Box2D

Moved most code from the timeline to the Document class (Main.as).