Fixed mousewheel bug where it would zoom the graph anywhere instead of just on the graph.
Separated code into modular scripts and added references to them.